class CreateCombustiveis < ActiveRecord::Migration
  
  def self.up
    create_table :combustiveis do |t|
      t.column :nome, :string, :null => false, :unique => true
    end
    
    Combustivel.create( :nome => 'Gasolina' )
    Combustivel.create( :nome => 'Álcool' )
    Combustivel.create( :nome => 'Diesel' )
    Combustivel.create( :nome => 'Gás Natural' )
    Combustivel.create( :nome => 'Biodiesel' )
    
  end

  def self.down
    drop_table :combustiveis
  end

end
